home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / IDL / Shape.idl < prev    next >
Encoding:
Text File  |  1994-04-19  |  1.7 KB  |  97 lines  |  [TEXT/MPS ]

  1. //# Copyright:    © 1993-94 by Apple Computer, Inc., all rights reserved.
  2. #ifndef _SHAPE_
  3. #define _SHAPE_
  4.  
  5. #ifndef _SHAPEB_
  6. #include "ShapeB.idl"      
  7. #endif
  8.  
  9. //==============================================================================
  10. // Classes defined in this interface
  11. //==============================================================================
  12.  
  13. interface ODShape;
  14.  
  15. //==============================================================================
  16. // Classes used in this interface
  17. //==============================================================================
  18.  
  19. interface ODTransform;
  20. interface ODStorageUnit;
  21.  
  22.  
  23.  
  24. //==============================================================================
  25. // ODShape
  26. //==============================================================================
  27.  
  28. #ifdef _PLATFORM_MACINTOSH_
  29.  
  30. interface ODShape :  ODBaseShape
  31. {
  32.     void InitShape();
  33.         
  34.     //# $$$$$ These were inline
  35.     
  36.     ODRgnHandle GetQDRegion();
  37.               
  38.     void SetQDRegion(in ODRgnHandle rgn );
  39.               
  40.     ODgxShape GetGXShape( );
  41.               
  42.     void SetGXShape(in ODgxShape s);
  43.               
  44.     ODRgnHandle CopyQDRegion();
  45.  
  46.   
  47. #ifdef __SOMIDL__
  48.     implementation
  49.     {
  50.         override:
  51.             somInit,
  52.             somUninit,
  53.             Purge,
  54.     
  55.             SetGeometryMode,
  56.             GetGeometryMode,
  57.             GetBoundingBox,
  58.             SetRectangle,
  59.             CopyPolygon,
  60.             SetPolygon,
  61.             GetPlatformShape,
  62.             SetPlatformShape,
  63.             WriteShape,
  64.             ReadShape,
  65.             IsSameAs,
  66.             IsEmpty,
  67.             ContainsPoint,
  68.             IsRectangular,
  69.             HasGeometry,
  70.             Copy,
  71.             CopyFrom,
  72.             Transform,
  73.             InverseTransform,
  74.             Subtract,
  75.             Intersect,
  76.             Union;
  77.             
  78.         releaseorder:
  79.             InitShape,
  80.             GetQDRegion,
  81.             SetQDRegion,
  82.             GetGXShape,
  83.             SetGXShape,
  84.             CopyQDRegion,
  85.                 reserved1;
  86.     
  87.         majorversion = 1; minorversion = 0;
  88.  
  89.     
  90.   };
  91. #endif
  92. };
  93.  
  94. #endif //# _PLATFORM_MACINTOSH_
  95.  
  96. #endif //# _SHAPE_
  97.